import _fetch from './request.js'

function getQuestionList(params) {
    return _fetch({
        url: '/question/list',
        params
    });
}

function setQuestionStatus(data) {
    return _fetch({
        url: '/question/status',
        method: 'post',
        data
    });
}

function questionAdd(data) {
    return _fetch({
        url: '/question/add',
        method: 'post',
        data
    }); 
}

function questionEdit(data) {
    return _fetch({
        url: '/question/edit',
        method: 'post',
        data
    }); 
}

function questionRemove(data) {
    return _fetch({
        url: '/question/remove',
        method: 'post',
        data
    }); 
}
export {getQuestionList, setQuestionStatus, questionAdd, questionEdit, questionRemove}